import java.util.Scanner;

/**
 * @author haoranlu
 * @project IntelliJ IDEA
 */
public class demo4 {
    public static void main(String[] args) {
        double price = 60000;
        double price1;
        double price2;
        Scanner scanner = new Scanner(System.in);
        System.out.print("请输入月份:");
        int month = scanner.nextInt();
        switch (month){
            case 1:
            case 2:
            case 3:
            case 12:
                price1 = price*0.5;
                price2 = price*0.4;
                System.out.print("头等舱价格为:"+price1+",经济舱价格为:"+price2);
                break;
            case 4:
            case 5:
            case 6:
            case 7:
            case 8:
            case 9:
            case 10:
            case 11:
                price1=price*0.9;
                price2=price*0.8;
                System.out.print("头等舱价格为:"+price1+",经济舱价格为:"+price2);
                break;
        }
    }
}
